package com.zhang.teachingcommunity_spring.mapper.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.lang.reflect.Type;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user")
public class User {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;

    private Integer schoolId;

    private Integer userType;

    private String stuNo;

    private String username;
    @TableField(value = "password", select = false)
    private String password;

    private String gender;
    @TableField(exist = false)
    private String school;
    private String email;

    private String phone;

    private String avatar;
    private String nickname;
    @TableField(exist = false)
    private String token;
    @TableField(exist = false)
    private MultipartFile file;
}
